<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { log } from 'util';
// import Account from './pages/Account.vue'
// import Home from './pages/Home.vue'

export default {
  name: "app",
  methods: {

  },
  beforeCreate () {
      if(localStorage.getItem('JWT_Authorization')){
        this.$store.commit('account/set_info',{
          id:localStorage.id,
          isAdmin:localStorage.isAdmin,
          nickname:localStorage.nickname,
          img_url:localStorage.img_url
        })
      }else{
        console.log(localStorage.getItem('JWT_Authorization')); 
      }
       
  }
};
</script>


<style lang='scss'>
@import './_theme.scss';
*{
  margin: 0;
  padding: 0;
}
html,
body,
#app {
  background-color: $primary_bgc;
  height: 100%;
}
</style>
